/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */
#include "launchduino.h"

void delay() {
    volatile unsigned int i;
    i = 50000;                              // Delay
    do (i--);
    while (i != 0);   
}

void setup() {
  // initialize the digital pin as an output.
  // Pin 0 has an LED connected on most LaunchPad boards:
    pinMode(0, OUTPUT);
}

void loop() {
    digitalWrite(0, HIGH); // set the LED on
    delay();               // wait
    digitalWrite(0, LOW);  // set the LED off
    delay();               // wait
}
